﻿@model List<CompanyManagementDLL.MetaData.AttachmentMetaData>

@if (Model.Count > 0 && Model != null)
{
    <table class="table table-bordered table-striped dataTable">
        <thead>
            <tr>
                <th width="40%">Attachment Name</th>
                <th width="40%">Detail</th>
                <th width="20%">Action</th>
            </tr>
        </thead>
        <tbody>
            @foreach (var item in Model)
            {
                <tr>
                    <td>@item.AttachmentName</td>
                    <td>@item.Detail</td>
                    <td>
                        <a href="@Url.Action("Download", "Attachment", new { id = item.AttachmentID })" ><i class="fa fa-download"></i>Download </a>
                        <a href="@Url.Action("Delete", "Attachment", new { id = item.AttachmentID })" onclick="return confirm('Are sure want to Delete?')"><span style="margin-right: 4%">|</span><i class="fa fa-trash"></i>Delete </a>
                    </td>
                </tr>
            }
        </tbody>
    </table>
}
else
{
    <div class="callout callout-danger">
        <h4><b style="margin-right: 1%">No Attachment</b><span>available for in this task.</span></h4>
    </div>
}

